/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bonc.common.security.service;

import com.bonc.common.security.dao.MenuResourceDao;
import com.bonc.common.security.dao.MenuResourceDao2;
import com.bonc.common.security.entity.MenuResource;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author song
 */
@Service
@Transactional
public class MenuResourceService2Impl implements MenuResourceService2{
    
    @Autowired
    private MenuResourceDao2 menuResourceDao2;

    @Override
    public List<MenuResource> getAccessedMenu(String loginId) {
       return  menuResourceDao2.findAccessedMenu(loginId);
    }

    /**
     * @return the menuResourceDao2
     */
    public MenuResourceDao2 getMenuResourceDao2() {
        return menuResourceDao2;
    }

    /**
     * @param menuResourceDao2 the menuResourceDao2 to set
     */
    public void setMenuResourceDao2(MenuResourceDao2 menuResourceDao2) {
        this.menuResourceDao2 = menuResourceDao2;
    }
    
}
